const express = require('express')
const app = express()
app.listen(3000)

// 显示html页面
app.get('/', (req, res) => {

  let title = '你好，我是一个标题!!!'
  let lists = [
    'aaaaaaaaaaaaaaaa',
    'bbbbbbbbbbbbbbbb'
  ];
  let html = `
    <div>
      <h3>${title}</h3>
      <ul>
        ${lists.map(item => '<li>' + item + '</li>').join('')}
      </ul>
    </div>
  `

  res.send(html)
})



